﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Lab1_Mochulskiy_
{
    public partial class Form1 : Form
    {
        Recognition rec = new Recognition();
        public Form1()
        {
            InitializeComponent();
            label4.Text = rec.GetPatternsInfo();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
            Criteria criteria = new Criteria();
            criteria.Weight = Int32.Parse(textBox1.Text);
            criteria.WheelCount = Int32.Parse(textBox2.Text);
            criteria.MaxSpeed = Int32.Parse(textBox3.Text);

            
            
            MessageBox.Show(rec.Recognize(criteria));
        }
    }
}
